﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;

namespace IHISCETeim.Web.MachineSys.FXModel
{
    public partial class FXFinanceLeaseView : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }
        protected override string DWZRef
        {
            get { return "AreaManagerFXFinanceLeaseMasterList"; }
        }



        protected int FnncLsId
        {
            get
            {
                return GetRequestValue<int>("FnncLsId", 0);
            }
        }
        protected short NextLeaseStatus
        {
            get
            {
                return GetRequestValue<short>("NextLeaseStatus", 0);
            }
        }


        private FXFinanceLeaseInfo _objFx = null;

        protected FXFinanceLeaseInfo objFx
        {
            get
            {
                if (_objFx == null)
                    _objFx = FXFinanceLeaseController.GetById(FnncLsId);
                return _objFx;
            }
        }

        protected string GetDateShowType(object datevalue)
        {
            if (datevalue == DBNull.Value || Convert.ToDateTime(datevalue) == DateTime.MinValue)
                return "";
            DateTime dtemp = Convert.ToDateTime(datevalue);
            return dtemp.ToString("yyyy-MM-dd");
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
      
    }
}